package com.example.sprintboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("user_address")
public class UserAddress {
    @TableId(value = "address_id",type = IdType.AUTO)
    private Integer addressId;
    @TableField("user_id")
    private Integer userId;
    @TableField("receiver_name")
    private String receiverName;
    private String province;
    private String city;
    private String district;
    @TableField("detail_address")
    private String detailAddress;
    private String phone;
    @TableField("is_default")
    private Integer isDefault;
}